### oefening 2 ### public void btnOK(View view) { ... // Leeftijd EditText etnLeeftijd = (EditText)findViewById(R.id.etnLeeftijd); int leeftijd = Integer.parseInt(etnLeeftijd.getText().toString()); String strLeeftijd; if (leeftijd < 18 ) { strLeeftijd = "wel recht op kinderbijslag"; } else { strLeeftijd = "geen recht op kinderbijslag"; } TextView tvLeeftijd = (TextView)findViewById((R.id.tvLeeftijd)); tvLeeftijd.setText(strLeeftijd); ... }